Certification   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A movies 0 8 1
A tv 0 8 1
1
import { BaseEndpoint } from './baseEndpoint';
2
import { CertificationsResponse } from '../interfaces/certifications';
3
4
/**
5
 * Certifications Endpoint Class
6
 */
7
export class Certification extends BaseEndpoint {
8
9
    /**
10
     * Get list of certifications for movies
11
     * @returns { Promise<CertificationsResponse> }
12
     * @see https://developers.themoviedb.org/3/certifications/get-movie-certifications
13
     */
14
    public async movies(): Promise<CertificationsResponse> {
15
        return this.sendGetRequest('certification/movie/list');
16
    }
17
18
    /**
19
     * Get list of certifications for tv shows
20
     * @returns { Promise<CertificationsResponse> }
21
     * @see https://developers.themoviedb.org/3/certifications/get-tv-certifications
22
     */
23
    public async tv(): Promise<CertificationsResponse> {
24
        return this.sendGetRequest('certification/tv/list');
25
    }
26
27
}
28